package entity

import (
	"github.com/jinzhu/gorm"
	"shqsoft.cn/pasnj/base"
)

//COMP_DFGZ_DR 用户
type COMP_DFGZ_DR struct {
	ID    int    `gorm:"AUTO_INCREMENT;primary_key;column:ID"`
	KHMC  string `gorm:"column:KHMC;"`
	DWBH  string `gorm:"column:DWBH;"`
	DGKHH string `gorm:"column:DGKHH;"`
}

//TableName User用户表名
func (COMP_DFGZ_DR) TableName() string {
	return "TI_COMP_DFGZ"
}

func COMP_DFGZ_DRAfterImport(tx *gorm.DB, params map[string]string) (err error) {
	tx.Exec("EXEC UP_COMP_DFGZ")
	return nil
}

// COMP_DFGZ_DREF G
func COMP_DFGZ_DREF() base.EntityFunc {
	return func() interface{} {
		entity := COMP_DFGZ_DR{}
		return &entity
	}
}

//COMP_DFGZ_DRESF GJ
func COMP_DFGZ_DRESF() base.EntitiesFunc {
	return func() interface{} {
		var entities []COMP_DFGZ_DR
		return &entities
	}
}
func init() {
	base.DaoPoolObj.Put("COMP_DFGZ_DR", base.NewDefaultDao(COMP_DFGZ_DREF(), COMP_DFGZ_DRESF(), nil))
	base.SetAfterCallBack("COMP_DFGZ_DR", COMP_DFGZ_DRAfterImport)
}
